#ifndef TRSTATE_H
#define TRSTATE_H

/*
a beginning and an end
*/

#include <irrlicht.h>
#include "trEvent.h"

namespace tetra
{

class trState : public tetra::trEvent
{
    irr::u32 length; //brought down once every logic tik. At a rate of 32 tiks per second

public:

    //! Constructor
    trState();

    //! Destructor
    ~trState();

    //! Brings down length by one and checks if the length is up
    virtual void tik()
    {

        if( length <= 0 )
        {
            alive =false;
        }
        else
        {
            length--;
        };

    };

};

};//end namespace tetra

#endif
